<template>
  <div class="peisong">
    <header>
      <h1>快递打印系统</h1>
      <div class="header_top">
        <el-col :span="12">
          <el-dropdown trigger="click">
            <span class="el-dropdown-link">
              null
              <i class="el-icon-arrow-down el-icon--right"></i>
            </span>
            <el-dropdown-menu slot="dropdown">
              <el-dropdown-item>null</el-dropdown-item>
            </el-dropdown-menu>
          </el-dropdown>
        </el-col>

        <el-button>退出</el-button>
      </div>
    </header>
    <main></main>
    <footer>
      <el-button :plain="true" style="background:#409eff;;" @click="open2">打印团长单</el-button>
      <el-button :plain="true" style="background:#097f09;" @click="open3">打印发货单</el-button>
      <el-button :plain="true" style="background:rgba(25, 184, 208, 0.8);" @click="open1">打印采购单</el-button>
      <el-button :plain="true" style="background:#097f09;" @click="open4">打印配货单</el-button>
      <el-button :plain="true" style="background:#E6A23C;" @click="open1">打印路线单</el-button>
      <el-button :plain="true" style="background:#F56C6C;" @click="open4">打印快递单</el-button>
    </footer>
  </div>
</template>

<script>
export default {
  methods: {
    open1() {
      this.$message('正在打印团长单');
    },
    open2() {
      this.$message({
        message: '打印发货单',
        type: 'success'
      });
    },

    open3() {
      this.$message({
        message: '打印采购单',
        type: 'warning'
      });
    },

    open4() {
      this.$message.error('打印费货单');
    }
  }
}
</script>

<style scoped lang="scss">
.peisong {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
header {
  width: 100%;
  height: 15%;
  background: rgba(3, 150, 68, 0.8);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  align-items: center;
  color: #fff;
  // color: ;
  h1 {
    font-size: 30px;
  }
}
.el-dropdown-link {
  cursor: pointer;
  color: #409eff;
}
.el-icon-arrow-down {
  font-size: 12px;
}
.demonstration {
  display: block;
  color: #8492a6;
  font-size: 14px;
  margin-bottom: 20px;
}
.header_top {
  width: 20%;
  display: flex;
  align-items: center;
}
.el-dropdown-link,
.el-icon-arrow-down {
  color: #fff;
  font-weight: bolder;
  font-size: 18px;
}
main {
  flex: 1;
}
footer {
  width: 100%;
  height: 10%;
  background: #909399;
  display: flex;
  align-items: center;
  padding: 0 20px;
  .el-button {
    width: 16%;
    height: 50px;
    color: #fff;
    font-size: 17px;
    // border: none;
  }
}
</style>